package com.ashbur.lottery.domain.strategy.repository;

import com.ashbur.lottery.domain.strategy.model.aggregates.StrategyRich;
import com.ashbur.lottery.domain.strategy.model.vo.AwardBriefVO;

import java.util.List;

/**
 * @author : Eumenides
 * @Description :
 * @date : 2022/8/18
 * @Copyright ： 公众号：菜鸟的大厂梦
 */
public interface IStrategyRepository {
    StrategyRich queryStrategyRich(Long strategyId);

    AwardBriefVO queryAwardInfo(String awardId);

    List<String> queryNoStockStrategyAwardList(Long strategyId);

    /**
     * 扣减库存
     * @param strategyId 策略ID
     * @param awardId    奖品ID
     * @return           扣减结果
     */
    boolean deductStock(Long strategyId, String awardId);
}
